package com.zx.bean;

/*
 * wgy 2019/9/10 14:33
 * 佛祖保佑，永无BUG!
 * CREATE TABLE `tb_orderdetail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `Oid` varchar(100) DEFAULT NULL,
  `pid` int(11) DEFAULT NULL,
  `num` int(11) DEFAULT NULL,
  `Money` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_order_pid` (`pid`),
  KEY `fk_order_id` (`Oid`),
  CONSTRAINT `fk_order_id` FOREIGN KEY (`Oid`) REFERENCES `tb_order` (`id`),
  CONSTRAINT `fk_order_pid` FOREIGN KEY (`pid`) REFERENCES `tb_goods` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8
 */
public class OrderDetail {
	private Integer id;
	private String oid;
	private Integer pid;
	private Integer num;
	private double money;

	public OrderDetail(Integer id, String oid, Integer pid, Integer num, double money) {
		this.id = id;
		this.oid = oid;
		this.pid = pid;
		this.num = num;
		this.money = money;
	}

	public OrderDetail() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	@Override
	public String toString() {
		return "OrderDetail{" +
				"id=" + id +
				", oid='" + oid + '\'' +
				", pid=" + pid +
				", num=" + num +
				", money=" + money +
				'}';
	}
}
